@import "variables";
@import "mixins";

#chat-view {

  #chat-history {
    position: relative;
    padding: 0 10px;
    margin-bottom: 10px;
    line-height: 20px;
    height: 100px;
    overflow: hidden;
    background: #f9f9f9;
    border: 1px solid #aaa;

    .box-shadow(inset 0 1px 4px rgba(0,0,0,.2));
    .border-radius(.35em);
  }

  #chat-control {
    position:relative;
  }

  .chat-msg-item {
    padding: 2px;
    padding-left: 3px;
    padding-right: 3px;
    text-shadow: 0 1px 0 @hdBaseColor;
  }

  .chat-msg-item-broadcast {

    .chat-msg-item;
    .horizontal-gradient(#c3c3c3,#eee);

    &:before {
      content: "(Broadcast) ";
    }
  }

  .ping-msg-item {

    .chat-msg-item;
    .horizontal-gradient(#c3c3c3,#eee);

    &:before {
      content: "(Ping) ";
    }
  }

  .dm-msg-item {

    .chat-msg-item;
    background: #c3c3c3;

    text-align: left;
    .horizontal-gradient(@hdBaseColor, #c3c3c3);
    .text-shadow(none);
  }

  .chat-msg-item-me {

    .chat-msg-item;
    background: #c3c3c3;

    text-align: left;
    .horizontal-gradient(@hdBaseColor, #c3c3c3);
    .text-shadow(none);
  }

  .chat-grid {
    position:absolute;
    bottom: 0px;
    left: 12px;
    width: 100%;
    display: inline-block;

    .row-left {
      width: 80%;
      float: left;

      @media all and (max-width: 480px) {
        width: 70%;
      }
    }

    .ui-input-text {
      margin-top: 10px;

      @media all and (max-width: 767px) {
        width: 93%;
      }

      @media all and (max-width: 480px) {
        width: 93%;
      }
    }

    .row-right {
      width: 20%;
      float: left;

      @media all and (max-width: 480px) {
        width: 30%;
      }

      .ui-btn-block {
        margin-right: 26px;
      }
    }


    &:after {
      clear:both
    }
  }
}